package cn.yedong.system.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.yedong.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 实体类：
 */
@Data
public class Menu extends BaseDomain{

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parentId;
    //保存上级菜单
    private Menu parent;
    private String intro;
    private Boolean state;

    //用于封装当前菜单的子菜单
    @JsonInclude(JsonInclude.Include.NON_EMPTY)//最后一级没有数据就不显示
    private List<Menu> children = new ArrayList<>();


}
